<?php
namespace app\common\model;

use think\Model;

class Ar extends Model
{
    protected $pk     = 'id';
    protected $table   = "fs_auth_group_access";


    /**
     * 根据管理员ID查找角色
     * @param  int $adminId 管理员ID
     * @return fixed     
     */
    public function getRoleId($adminId)
    {
        return $this::where(['uid'=>$adminId])->column('group_id');;
    }

    public function saveAr($data)
    {
        return $this::saveAll($data);
    }


    public function delAr($where)
    {
        $this::where($where)->delete();
    }


 
}
